﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DigtiMatrix.Entity
{
    public class CameraInfo
    {
        public int ID
        {
            get { return id; }
            set { id = value; }
        }
        // Name property
        public string Name
        {
            get { return name; }
            set { name = value; }
        }
        // Description property
        public string Description
        {
            get { return description; }
            set { description = value; }
        }
       
        // FullName property
        public string FullName
        {
            get
            {
                return (parent == null) ? name : (parent.FullName + '\\' + name);
            }
        }

        // Configuration property
        public object Configuration
        {
            get { return configuration; }
            set { configuration = value; }
        }
        // Provider property
        //public VideoProvider Provider
        //{
        //    get { return provider; }
        //    set { provider = value; }
        //}
        //// LastFrame property
        //public Bitmap LastFrame
        //{
        //    get { return lastFrame; }
        //}
        // Width property
        public int Width
        {
            get { return width; }
        }
        // Height property
        public int Height
        {
            get { return height; }
        }
        // FramesReceived property
        public int FramesReceived
        {
            get { return (videoSource == null) ? 0 : videoSource.FramesReceived; }
        }
        // BytesReceived property
        public int BytesReceived
        {
            get { return (videoSource == null) ? 0 : videoSource.BytesReceived; }
        }
        // Running property
        public bool Running
        {
            get { return (videoSource == null) ? false : videoSource.Running; }
        }

    }
}
